<?php

namespace Liuhelong\LaravelAdmin\Wechat\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Encore\Admin\Traits\DefaultDatetimeFormat;
use Illuminate\Support\Facades\Storage;

class WechatOffiaccountNew extends Model
{
    use HasFactory,DefaultDatetimeFormat;
	
	
	public function setImageAttribute($value)
    {
        $this->attributes['image'] = Storage::disk('admin')->url($value);
    }
}
